package cn.tanghom.conf;

import java.util.Date;


/**
 * 公共
 * 
 * @author tanghom <tanghom@qq.com> 2015-11-18
 */
public interface CommonKey {
	
	// UserSession
	public static final String USER_SESSION = "user";
	// webscoketUserSession
	public static final String WEBSOCKET_USER_SESSION = "webscoketUser";
	// 菜单session
	public static final String MENU_SESSION = "menuSession";
	
	//数据字典cache
	public static final String CACHE_KEY_DICTIONARY = "cacheKeyDictionary";
	
		
	/***************** session key *****************/
    public static final String CURRENT_USER = "user";
    public static final String SESSION_FORCE_LOGOUT_KEY = "session.force.logout";
    
	/***************** default password (123456) *****************/
	public static final String DEFAULT_PASSWORD = "14e1b600b1fd579f47433b88e8d85291";
	
	public static long SYSY_INIT_TIME = new Date().getTime();
	
	
	public static final String STATUS = "status"; // :
	
	public static final String WARN = "warn";
	public static final String SUCCESS = "success";
	public static final String ERROR = "error";

	public static final String COMMAND = "command"; //ajax command:
	
	public static final String APPEND  = "append";
	public static final String REPLACE = "replace";
	
	public static final String MESSAGE = "message"; //if status==success|warn
	public static final String DATA = "data";	//if status==success|warn

	public static final String statusCode = "statusCode"; // :
	public static final String errorMessage = "errorMessage";
	public static final String redirectUrl = "redirect";// 操作提示后的跳转URL,为null则返回前一页
	
	
	
	public static PropertiesLoader application = new PropertiesLoader("application.properties","application.local.properties");
	
	public static PropertiesLoader jdbc = new PropertiesLoader("jdbc.properties","jdbc.local.properties");

}
